/*
 * @Author: zll
 * @Date: 2024-04-22 13:18:20
 * @LastEditors: zll
 * @LastEditTime: 2024-07-19 09:06:37
 * @Description: file content
 * @FilePath: \erp-app\src\service\message.ts
 */
import { request } from '@/utils/request';

/** 登录 */
export const getNotices = (query) => {
  return request<{ data: any }>({
    url: `/admin/sysMessage/my/page`,
    method: 'GET',
    query,
  });
};
export const setRead = (id) => {
  return request<{ data: any }>({
    url: `/admin/sysMessage/read/${id}`,
    method: 'PUT',
  });
};
export const setReadAll = () => {
  return request<{ data: any }>({
    url: `/admin/sysMessage/all/read`,
    method: 'PUT',
  });
};
export const getNoticesTab = () => {
  return request<{ data: any }>({
    url: `/admin/sysMessage/listUserCategory/1`,
    method: 'GET',
  });
};
export const getCateList = (query) => {
  return request<{ data: any }>({
    url: `/admin/sysMessage/listUserModule`,
    method: 'GET',
    query,
  });
};
